<form action="administrator-score-orderscore" method="post" onsubmit="return check_score();">
<table class="TableA" width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF">
	<tr>
		<td height="25" align="right" width="40%"">1美元 =</td>
		<td height="25" align="left">
			<input type="text"  name="score" id="score" value="<?php echo $this->score;?>"/>积分
		</td>
	</tr>
	<tr>
		<td height="25" align="right" width="40%"">赠送1美元 =</td>
		<td height="25" align="left">
			购买<input type="text"  name="order_dollar" id="order_dollar" value="<?php echo $this->orderDollar;?>"/>美元
		</td>
	</tr>
	<tr>
		<td height="25" align="right" width="50%"">活动状态：*</td>
		<td height="25" align="left">
			开启：<input type="radio" name="statu" value="1" <?php if ($this->statu == 1) {echo 'checked';}?>/>
			关闭：<input type="radio" name="statu" value="0" <?php if ($this->statu == 0) {echo 'checked';}?>/>
		</td>
	</tr>
	<tr>
		<td colspan="2" width="100%" align="center" style="background-color: #eee">
			<input type="submit" value="确认提交" />&nbsp;&nbsp;<input type="button" value="返回" onclick="window.history.go(-1);" />
		</td>
	</tr>	
</table>
</form>
<style>
	.TableA { border-collapse:collapse }
	.TableA tr td { padding: 4px; }
</style>
<script type="text/javascript">
	function check_score()
	{
		score = $('#score').val();
		var reg = /^[1-9]\d*$/;
		if (!reg.test(score)) {
			alert('请输入数字');
			return false;
		}
		return true;
	}
</script>